//
//  NSString+FormatValidation.h
//  bgms_p
//
//  Created by lachesis-zhu on 16/5/27.
//  Copyright © 2016年 xiao.zhao@lachesis-mh.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (FormatValidation)
//邮箱
+ (BOOL)validateEmail:(NSString *)email;

//手机号码验证
+ (BOOL)validateMobile:(NSString *)mobile;

//车牌号验证
+ (BOOL)validateCarNo:(NSString *)carNo;

//车型
+ (BOOL)validateCarType:(NSString *)CarType;

//用户名
+ (BOOL)validateUserName:(NSString *)name;

//密码
+ (BOOL)validatePassword:(NSString *)passWord;

//昵称
+ (BOOL)validateNickname:(NSString *)nickname;

//身份证号
+ (BOOL)validateIdentityCard: (NSString *)identityCard;

//字母
+ (BOOL) validateABCabc: (NSString *)string;

//标点符号
+ (BOOL)validatePunctuation: (NSString *)string;

//整数
+ (BOOL)validateInterger: (NSString *)string;

//中文
+ (BOOL)validateChinese:(NSString *)string;

+ (BOOL)isValidatIP:(NSString *)ipAddress;
+ (BOOL)isValidatPort:(NSString *)port;
@end
